import Mock from 'mockjs'
import homeApi from './mockServeData/home'
import chineseHerbalMedicine from './mockServeData/chineseHerbalMedicine'
import permission from './mockServeData/permission'

//定义mock请求拦截
Mock.mock('/api/home/getData',homeApi.getStatisticalData)

//中草药列表的数据
Mock.mock('/api/chineseHerbalMedicine/createHerbal','post',chineseHerbalMedicine.createHerbal)
Mock.mock('/api/chineseHerbalMedicine/updateHerbal','post',chineseHerbalMedicine.updateHerbal)
Mock.mock('/api/chineseHerbalMedicine/deleteHerbal','post',chineseHerbalMedicine.deleteHerbal)
Mock.mock(/api\/chineseHerbalMedicine\/getHerbalList/,chineseHerbalMedicine.getHerbalList)



Mock.mock(/api\/permission\/getMenu/,'post',permission.getMenu)